/*
 * Created on 2005-7-5
 *
 */
package com.context;

/**
 * @author zyl
 *
 */
public class Application {
    private Container container;
    private static Application application = new Application();
    
    /**
     * @return Returns the container.
     */
    public Container getContainer() {
        return container;
    }
    /**
     * @param container The container to set.
     */
    public void setContainer(Container container) {
        this.container = container;
    }
    
    private Application(){
        
    }
    
    public static Application getInstance(){
        return application;
    }
    
    public Object getComponent(String name){
        return container.getComponent(name);
    }
    
}
